# coding=utf-8


class TaskBuild2MonkeyFlow(object):
    sup_task_name = 'sup_task_name'
    sub_task_name = 'sub_task_name'
    product_of_device = 'product_of_device'  # 产品型号
    hours_of_monkey_test = 'hours_of_monkey_test'  # monkey测试的时长
    crash_count = 'crash_count'  # crash个数
    anr_count = 'anr_count'  # anr个数
    mind_package = 'mind_package'  # 关注的包名
    monkey_exec_cmd = 'monkey_exec_cmd'  # monkey执行指令
    build_result = 'build_result'  # 构建结果
    build_url = 'build_url'  # 构建结果路径
    rom_path = 'rom_path'  # 构建rom的路径
    flash_result = 'flash_result'  # 刷机结果
    guide_jump_result = 'guild_jump_result'  # 跳过引导页的结果
    monkey_exec_log_path = 'monkey_exec_log_path'  # monkey测试执行日志
    begin_time_of_monkey_test = 'begin_time_of_monkey_test'  # 开始monkey测试的时间
    end_time_of_monkey_test = 'end_time_of_monkey_test'  # 结束monkey测试的时间
    crash_files_path_list = 'crash_files_path_list'  # crash的文件列表
    anr_files_path_list = 'anr_files_path_list'  # anr的文件列表
    error_info = 'error_info'  # 错误信息
    log_path = 'log_path'  # 日志路径
    if_next = 'if_next'  # 下次是否执行
    done = 'done'
    status = 'status'
    pid = 'pid'
    downloadfile = 'downloadfile'
    downloadfilename = 'downloadfilename'
    anr_info = 'anr_info'
    crash_info = 'crash_info'

    list_culomn = [product_of_device,
                   hours_of_monkey_test,
                   crash_count,
                   anr_count,
                   mind_package,
                   monkey_exec_cmd,
                   build_result,
                   build_url,
                   rom_path,
                   flash_result,
                   guide_jump_result,
                   monkey_exec_log_path,
                   begin_time_of_monkey_test,
                   end_time_of_monkey_test,
                   crash_files_path_list,
                   anr_files_path_list,
                   error_info,
                   log_path,
                   if_next]

    dict_desc = {
        product_of_device: '产品型号',
        hours_of_monkey_test: 'monkey测试的时长',
        crash_count: 'crash个数',
        anr_count: 'anr个数',
        mind_package: '关注的包名',
        monkey_exec_cmd: 'monkey执行指令',
        build_result: '构建结果',
        build_url: '构建结果路径',
        rom_path: '构建rom的路径',
        flash_result: '刷机结果',
        guide_jump_result: '跳过引导页的结果',
        monkey_exec_log_path: 'monkey测试执行日志',
        begin_time_of_monkey_test: '开始monkey测试的时间',
        end_time_of_monkey_test: '结束monkey测试的时间',
        crash_files_path_list: 'crash的文件列表',
        anr_files_path_list: 'anr的文件列表',
        error_info: '错误信息',
        if_next: '下次是否执行',
        log_path: "日志路径",
    }
